projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fdb53b
)
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Declare the type immediately
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 27 Mar 2020 21:14:34 +0000
(17:14 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 27 Mar 2020 21:14:34 +0000
(17:14 -0400)
lisp/emacs-lisp/cl-macs.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-macs.el
b/lisp/emacs-lisp/cl-macs.el
index 954731b06b8ad55bfe8906276b52cf3beb0d3fed..7f5d197b532a9a68656fd911db8c249e048e1982 100644
(file)
--- a/
lisp/emacs-lisp/cl-macs.el
+++ b/
lisp/emacs-lisp/cl-macs.el
@@
-2868,7
+2868,9
@@
Supported keywords for slots are:
(append pred-form '(t))
`(and ,pred-form t)))
forms)
- (push `(put ',name 'cl-deftype-satisfies ',predicate) forms))
+ (push `(eval-and-compile
+ (put ',name 'cl-deftype-satisfies ',predicate))
+ forms))
(let ((pos 0) (descp descs))
(while descp
(let* ((desc (pop descp))
@@
-3138,6
+3140,7
@@
Of course, we really can't know that for sure, so it's just a heuristic."
;; "Obvious" mappings.
(string . stringp)
(list . listp)
+ (cons . consp)
(symbol . symbolp)
(function . functionp)
(integer . integerp)